/*
 * @Author: wfl
 * @LastEditors: wfl
 * @description: 
 * @updateInfo: 本次更新内容：
 * @Date: 2021-03-17 14:23:59
 * @LastEditTime: 2021-04-29 11:08:50
 */
import { createApp } from 'vue'
import Antd from 'ant-design-vue'
import App from './App.vue'
import 'ant-design-vue/dist/antd.css'
import '/@/assets/scss/index.scss'
import baseUrl from '/@/utils/index'
import { useInterceptor } from '/@/network/axios_interceptor'

const app = createApp(App);
// 注册axios拦截器
useInterceptor();
// 解决ant-design-vue上传组件报process错误问题
// 等下个版本解决问题后删除
(<any>window).process = {
    env: {
        TEST_IE: false
    }
}

// 配置全局属性
app.config.globalProperties.$baseUrl = baseUrl;

// 使用插件并挂载节点
app.use(Antd)
    .mount('#app')
